import instance from "../../global";
//取消收藏视频
export function offCollectVideo(userId,videoId) {
    return instance.post("hemo/system/collect/offCollectVideo",{userId:userId,videoId:videoId})
};
//收藏视频
export function onCollectVideo(userId,videoId) {
    return instance.post("hemo/system/collect/onCollectVideo",{userId:userId,videoId:videoId})
};
//关注up主
export function onFans(userId,bigvId) {
    return instance.post("hemo/system/fans/onFans",{userId:userId,bigvId:bigvId})
};
//取消关注up主
export function offFans(userId,bigvId) {
    return instance.post("hemo/system/fans/offFans",{userId:userId,bigvId:bigvId})
};

/**
 * 随即视频展示
 * @returns {Promise<AxiosResponse<any>>}
 * @constructor
 */
export function RandomVideo(){
    return instance.post("hemo/system/video/randomVideo")
}

/**
 * 查询用户视频点赞数
 * @param userId
 * @returns {Promise<AxiosResponse<any>>}
 * @constructor
 */
export function EasyNum(userId){
    return instance.get('hemo/system/video/easyNum',{params:{userId:userId}})
}

